-
Notifications
You must be signed in to change notification settings - Fork 3.8k
fix: instant reject all for VS Code #8489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
✅ Review Complete Code Review Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 1 file
Patrick-Erichsen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Assuming this for speed + keeping undo stack clean? Based on Cubic comment
| interface LineOperation { | ||
| type: "removed" | "added"; | ||
| line?: string; // Only for removed lines | ||
| range: vscode.Range; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't even know you could do define an interface inside a function lol
Kind of awkward but nbd
|
🎉 This PR is included in version 1.32.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.29.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
Instead of file operations for each individual diff, unified reject all with one file operation
First reject is before, second is after:
unified-reject-all-vscode.mp4
Summary by cubic
Make “Reject All” in VS Code instant by applying all diffs in one edit instead of per-diff operations. This speeds up large files and keeps undo history clean.